package main

import (
	"awesome/config"
	"awesome/models"
	"awesome/routers"

	"github.com/gin-gonic/gin"
)

func main() {
	// init Db
	config.ConnectDatabase()
	// init Models
	models.InitModels()

	r := gin.Default()

	// init Routers
	routers.InitRouters(r)

	err := r.Run(":9033")
	if err != nil {
		return
	}
}
